package com.lambda.demo.stream;

import com.lambda.demo.models.AuthorsData;

public class StreamDistinctTest {
  public static void main(String[] args) {
    AuthorsData.getAuthorsWithDuplicates().stream()
      .distinct()
      .forEach(a -> System.out.println(a.getName()));
  }
}
